﻿<Window x:Class="CSharpLogitechLcd.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="426" Width="589" Closing="Window_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <Label Content="Select LCD type" />
            <ComboBox Name="cbxLcdType" ItemsSource="{Binding}" Width="120" Margin="10,0" />
            <Button Name="btnInitLcd" Click="btnInitLcd_Click" Width="80" Margin="10,0">Init LCD</Button>
            <Button Name="btnShutdownLcd" Click="btnShutdownLcd_Click" Width="90" >Shutdown LCD</Button>
        </StackPanel>
        <TabControl Grid.Row="1" IsEnabled="True">
            <TabItem x:Name="tabItemMono" Header="Mono" IsEnabled="False" >
                <Grid IsEnabled="{Binding IsEnabled, ElementName=tabItemMono}">
                    <Button Name="btnCercle" Content="Cercle" Margin="56,58,0,0" Click="btnCercle_Click" Height="40" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67" />
                    <Button x:Name="btnImage" Content="Load Image" Margin="56,103,0,0" Click="btnImage_Click" Height="40" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67" />
                    <Button x:Name="btnClearScreen" Content="Clear screen" Margin="370,48,0,0" Click="btnClearScreen_Click" HorizontalAlignment="Left" Width="67" Height="40" VerticalAlignment="Top" />
                    <TextBox x:Name="tbxTextToDisplay1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="153,130,0,0" Width="200" TextChanged="tbxTextToDisplay_TextChanged" Tag="0" />
                    <TextBox x:Name="tbxTextToDisplay2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="153,150,0,0" Width="200" TextChanged="tbxTextToDisplay_TextChanged" Tag="1" />
                    <TextBox x:Name="tbxTextToDisplay3" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="153,170,0,0" Width="200" TextChanged="tbxTextToDisplay_TextChanged" Tag="2" />
                    <TextBox x:Name="tbxTextToDisplay4" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="153,190,0,0" Width="200" TextChanged="tbxTextToDisplay_TextChanged" Tag="3" />
                    <TextBox x:Name="tbxDemoText" TextChanged="tbxDemoText_TextChanged" HorizontalAlignment="Left" Margin="153,233,0,0" Width="200" Text="Demo TeXt!!" Height="18" VerticalAlignment="Top" />
                    <CheckBox x:Name="btn1" HorizontalAlignment="Left" Margin="170,93,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btn2" HorizontalAlignment="Left" Margin="220,93,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btn3" HorizontalAlignment="Left" Margin="264,93,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btn4" HorizontalAlignment="Left" Margin="314,93,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <Button x:Name="btnDemo" Click="btnDemo_Click" Content="Demo" Margin="56,10,0,0" Height="43" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67"/>
                    <Button x:Name="btnDemoText" Click="btnDemoText_Click" Content="Demo Text" Margin="56,208,0,0" Height="43" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67"/>
                    <Rectangle x:Name="screenRectangle" MouseMove="screenRectangle_MouseMove" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="43" Margin="170,45,0,0" Stroke="Black" VerticalAlignment="Top" Width="160"/>
                    <ComboBox x:Name="cbxFontSelection" HorizontalAlignment="Left" Margin="370,229,0,0" VerticalAlignment="Top" Width="131"
                              ItemsSource="{Binding}" DisplayMemberPath="Name" SelectionChanged="cbxFontSelection_SelectionChanged" />
                </Grid>
            </TabItem>
            <TabItem x:Name="tabItemColor" Header="Color" IsEnabled="false">
                <Grid IsEnabled="{Binding IsEnabled, ElementName=tabItemColor}">
                    <Button x:Name="btnCercleColor" Click="btnCercle_Click" Content="Cercle" Margin="10,58,0,0"  Height="40" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67" />
                    <Button x:Name="btnImageColor" Click="btnImage_Click" Content="Load Image" Margin="10,103,0,0"  Height="40" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67" />
                    <Button x:Name="btnClearColorScreen" Click="btnClearScreen_Click" Content="Clear screen" Margin="10,148,0,0"  HorizontalAlignment="Left" Width="67" Height="40" VerticalAlignment="Top" />
                    <TextBox x:Name="tbxTextToDisplayColor" TextChanged="tbxTextToDisplay_TextChanged" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="82,280,0,0" Width="200" />
                    <TextBox x:Name="tbxDemoTextColor" TextChanged="tbxDemoText_TextChanged" HorizontalAlignment="Left" Margin="82,305,0,0" Width="200" Text="Demo TeXt!!" Height="18" VerticalAlignment="Top" />
                    <CheckBox x:Name="btnUp" HorizontalAlignment="Left" Margin="481,20,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btnLeft" HorizontalAlignment="Left" Margin="453,50,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btnDown" HorizontalAlignment="Left" Margin="481,80,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btnRight" HorizontalAlignment="Left" Margin="509,50,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btnOk" HorizontalAlignment="Left" Margin="481,50,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btnMenu" Content="Menu" HorizontalAlignment="Left" Margin="425,83,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <CheckBox x:Name="btnCancel" Content="Cancel" HorizontalAlignment="Left" Margin="425,103,0,0" VerticalAlignment="Top" IsEnabled="false" />
                    <Button x:Name="btnDemoColor" Click="btnDemo_Click" Content="Demo" Margin="10,10,0,0" Height="43" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67"/>
                    <Button x:Name="btnDemoTextColor" Click="btnDemoText_Click" Content="Demo Text" Margin="10,280,0,0" Height="43" VerticalAlignment="Top" HorizontalAlignment="Left" Width="67"/>
                    <Rectangle x:Name="screenRectangleColor" MouseMove="screenRectangleColor_MouseMove" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="240" Margin="83,10,0,0" Stroke="Black" VerticalAlignment="Top" Width="320"/>
                    <ComboBox x:Name="cbxFontSelectionColor" SelectionChanged="cbxFontSelection_SelectionChanged" HorizontalAlignment="Left" Margin="296,305,0,0" VerticalAlignment="Top" Width="131" ItemsSource="{Binding}" DisplayMemberPath="Name" />
                    <ComboBox x:Name="cbxLineToDisplayText" Margin="296,280,0,0"  VerticalAlignment="Top" HorizontalAlignment="Left" Width="131"/>
                    <ComboBox x:Name="cbxTextColor" Margin="434,280,0,0" ItemsSource="{Binding}" DisplayMemberPath="Name"  VerticalAlignment="Top" HorizontalAlignment="Left" Width="131"/>
                </Grid>
            </TabItem>
        </TabControl>


    </Grid>
</Window>
